<html><head><title>SetSerialPortStatus</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetSerialPortStatus()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>SetSerialPortStatus</b></font>(#SerialPort, Attribute, Value)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Changes the specified serial port status. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#SerialPort</i></td>
<td width="90%"> 
The serial port to use. 

</td></tr>
<tr><td><i>Attribute</i></td>
<td> 
The attribute to set. It can be one of the following value: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_SerialPort_DTR</font>: set DTR signal status (value can be 0 or 1)
  <font color="#924B72">#PB_SerialPort_RTS</font>: set RTS signal status (value can be 0 or 1)
  <font color="#924B72">#PB_SerialPort_TXD</font>: Set TXD signal status (value can be 0 or 1)
  <font color="#924B72">#PB_SerialPort_XonCharacter</font> : Character used for Xon/Xoff handshaking sequence (value can be between 1 and 255). Default value is $11.
  <font color="#924B72">#PB_SerialPort_XoffCharacter</font>: Character used for Xon/Xoff handshaking sequence (value can be between 1 and 255). Default value is $13.
</font></pre>

</td></tr>
<tr><td><i>Value</i></td>
<td> 
The attribute value to set. See 'attribute' description to see which value is applicable. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">OpenSerialPort</font>(0, "COM1", 300, <font color="#924B72">#PB_SerialPort_NoParity</font>, 8, 1, <font color="#924B72">#PB_SerialPort_XonXoffHandshake</font>, 1024, 1024)
<font color="#006666">    SetSerialPortStatus</font>(0, <font color="#924B72">#PB_SerialPort_XonCharacter</font>, 8)
<font color="#006666">    SetSerialPortStatus</font>(0, <font color="#924B72">#PB_SerialPort_XoffCharacter</font>, 9)
    <b><font color="#006666">Debug</font></b> "Success"
  <b><font color="#006666">Else</font></b>
    <b><font color="#006666">Debug</font></b> "Failed"
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="openserialport.html">OpenSerialPort()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=serialporttimeouts.html>SerialPortTimeouts()</a> - <a href=index.html>SerialPort Index</a> - <a href=writeserialportdata.html>WriteSerialPortData()</a> ->

</body></html>